package com.lmiot.xyclick.Util;

import android.content.Context;
import android.content.SharedPreferences;
import com.lmiot.xyclick.AD.SDK.ADSDK;
import com.lmiot.xyclick.App.MyApp;
import com.lmiot.xyclick.Bean.NoticSaveBean;
import com.lmiot.xyclick.Bean.SQL.ActionBean;
import com.lmiot.xyclick.Bean.XyNoticBean;
import com.youyi.yyviewsdklibrary.ArrayGson;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

public class DataUtil {
    public static final String BAIDU = "XYCLICK_GDT_BAIDU_HAND201";
    public static final String FILE_ACTION_DATA = "acd";
    public static final String FILE_AUTO_DATA = "aud";
    public static final String FILE_FG = "fg";
    public static final String FILE_FRIEND = "frd";
    public static final String FILE_GROUP = "grd";
    public static final String FILE_XYCLICK_DATA = "xyd";
    public static final String HUAWEI = "XYCLICK_GDT_HUAWEI_HAND203";
    public static final String KYE_LONG_BACK = "backKeyLongPress";
    public static final String KYE_LONG_HOME = "homeKeyLongPress";
    public static final String KYE_LONG_RECNET = "recentKeyLongPress";
    public static final String KYE_LONG_VOLUEM_ADD = "addVolumeLongPress";
    public static final String KYE_LONG_VOLUEM_DES = "cutDownVolumeLongPress";
    public static final String KYE_VOLUEM_ADD = "addVolumeClick";
    public static final String KYE_VOLUEM_DES = "cutDownVolumeClick";
    public static final String OPPO = "XYCLICK_GDT_OPPO_HAND201";
    public static final String TOOL_INTENT_AUTO_LIST = "com.lmiot.xyclick.showmenulist";
    public static final String TOOL_INTENT_WX_ZXING = "com.lmiot.xyclick_wx_zxing";
    public static final String TOOL_INTENT_ZFB_FU = "com.lmiot.xyclick_zfb_fu";
    public static final String TOOL_INTENT_ZFB_SHOU = "com.lmiot.xyclick_zfb_shou";
    public static final String TOOL_INTENT_ZFB_ZXING = "com.lmiot.xyclick_zfb_zxing";
    public static final String VIVO = "XYCLICK_GDT_VIVO_HAND201";
    public static final String XIAOMI = "XYCLICK_GDT_XIAOMI_HAND201";
    public static String fgID = "";
    public static String fgTitle = "";
    public static List<String> mCopyActionJsonList = new ArrayList();
    public static List<ActionBean> nowActionBeanList = new ArrayList();
    public static XyNoticBean nowNoicBean;

    public static void setLoginByWx(Context context, boolean z) {
        context.getSharedPreferences("VoiceData_1", 0).edit().putBoolean("setLoginByWx", z).commit();
    }

    public static boolean getLoginByWx(Context context) {
        return context.getSharedPreferences("VoiceData_1", 0).getBoolean("setLoginByWx", false);
    }

    public static void setUserEnable(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setUserEnable", z).commit();
    }

    public static boolean getUserEnable(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setUserEnable", true);
    }

    public static void setShowTip(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setShowTip", z).commit();
    }

    public static boolean getShowTip(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setShowTip", false);
    }

    public static void setTrackImg(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setTrackImg", z).commit();
    }

    public static boolean getTrackImg(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setTrackImg", true);
    }

    public static void setJumpPer(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setJumpPer", z).commit();
    }

    public static boolean getJumpPer(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setJumpPer", false);
    }

    public static void setFisrtData(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setFisrtData204", z).commit();
    }

    public static boolean getFisrtData(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setFisrtData204", true);
    }

    public static void setHasRecommand(Context context, String str, boolean z) {
        SharedPreferences.Editor edit = context.getSharedPreferences("DataUtil_1", 0).edit();
        edit.putBoolean("setHasRecommand" + str, z).commit();
    }

    public static boolean getHasRecommand(Context context, String str) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("DataUtil_1", 0);
        return sharedPreferences.getBoolean("setHasRecommand" + str, false);
    }

    public static void setNowHandPlusNum(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setNowHandPlusNum", i).commit();
    }

    public static int getNowHandPlusNum(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setNowHandPlusNum", 2);
    }

    public static void setHideSearch(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setHideSearch", z).commit();
    }

    public static boolean getHideSearch(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setHideSearch", true);
    }

    public static void setHideGroup(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setHideGroup", z).commit();
    }

    public static boolean getHideGroup(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setHideGroup", true);
    }

    public static void setCheckSPlashActivity(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setCheckSPlashActivity", z).commit();
    }

    public static boolean getCheckSPlashActivity(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setCheckSPlashActivity", false);
    }

    public static String getSign(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("getSign", "231985E37CF25FD00266F409D089F87E".toLowerCase());
    }

    public static void setUserRetist(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setUserRetist", z).commit();
    }

    public static boolean getUserRetist(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setUserRetist", false);
    }

    public static void setGDT(Context context, boolean z) {
        if (context != null) {
            context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setGDT", z).commit();
        }
    }

    public static boolean getGDT(Context context) {
        if (context == null) {
            return false;
        }
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setGDT", false);
    }

    public static void setVip(Context context, boolean z) {
        if (context != null) {
            MyApp.getContext().getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setVip00", z).commit();
        }
    }

    public static boolean getVip(Context context) {
        return true;
//        if (ADSDK.mIsGDT) {
//            return true;
//        }
//        return MyApp.getContext().getSharedPreferences("DataUtil_1", 0).getBoolean("setVip00", false);
    }

    public static void setLocalPay(Context context, boolean z) {
        if (context != null) {
            context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setLocalPay", z).commit();
        }
    }

    public static boolean getLocalPay(Context context) {
        if (context == null) {
            return false;
        }
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setLocalPay", false);
    }

    public static void setLocked(Context context, boolean z) {
        if (context != null) {
            context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setLocked", z).commit();
        }
    }

    public static boolean getLocked(Context context) {
        if (context == null) {
            return false;
        }
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setLocked", false);
    }

    public static void setLockOCR(Context context, boolean z) {
        if (context != null) {
            context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setLockOCR", z).commit();
        }
    }

    public static boolean getLockOCR(Context context) {
        if (context == null) {
            return false;
        }
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setLockOCR", false);
    }

    public static void setUserState(Context context, boolean z) {
        if (context != null) {
            context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setUserState", z).commit();
        }
    }

    public static boolean getUserState(Context context) {
        if (context == null) {
            return false;
        }
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setUserState", true);
    }

    public static void setAdSplashFlag(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setAdSplashFlag", z).commit();
    }

    public static boolean getAdSplashFlag(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setAdSplashFlag", true);
    }

    public static void setNickName(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setNickName", str).commit();
    }

    public static String getNickName(Context context) {
        if (context == null) {
            return "";
        }
        return context.getSharedPreferences("DataUtil_1", 0).getString("setNickName", PhoneUtil.getBrand());
    }

    public static void setWxNum(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setWxNum", str).commit();
    }

    public static String getWxNum(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setWxNum", "");
    }

    public static void setFre(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("voice_fre", str).commit();
    }

    public static String getFre(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("voice_fre", "50");
    }

    public static void setDenyList(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setDenyList", str).commit();
    }

    public static String getDenyList(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setDenyList", "");
    }

    public static void setNowCopyNum(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setNowCopyNum", i).commit();
    }

    public static int getNowCopyNum(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setNowCopyNum", 0);
    }

    public static void setHasReadNoticID(Context context, String str, boolean z) {
        SharedPreferences.Editor edit = context.getSharedPreferences("DataUtil_1", 0).edit();
        edit.putBoolean("setHasReadNoticID" + str, z).commit();
    }

    public static boolean getHasReadNoticID(Context context, String str) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("DataUtil_1", 0);
        return sharedPreferences.getBoolean("setHasReadNoticID" + str, false);
    }

    public static void setSpeed(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("voice_speed", str).commit();
    }

    public static String getSpeed(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("voice_speed", "50");
    }

    public static void setVoice(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("voice_voice", str).commit();
    }

    public static String getVoice(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("voice_voice", "50");
    }

    public static void setLanguage(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("voice_language", str).commit();
    }

    public static String getLanguage(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("voice_language", "mandarin");
    }

    public static void setQuietTime(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("voice_quiet_time", str).commit();
    }

    public static String getQuietTime(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("voice_quiet_time", "3000");
    }

    public static void setStopTime(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("voice_stop_time", str).commit();
    }

    public static String getStopTime(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("voice_stop_time", "3000");
    }

    public static void setDirectData(Context context, String str, String str2) {
        SharedPreferences.Editor edit = context.getSharedPreferences("DataUtil_1", 0).edit();
        edit.putString("setDirectData" + str, str2).commit();
    }

    public static String getDirectData(Context context, String str) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("DataUtil_1", 0);
        return sharedPreferences.getString("setDirectData" + str, null);
    }

    public static void setFloatData(Context context, String str, String str2) {
        SharedPreferences.Editor edit = context.getSharedPreferences("DataUtil_1", 0).edit();
        edit.putString("FloatData" + str, str2).commit();
    }

    public static String getFloatData(Context context, String str) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("DataUtil_1", 0);
        return sharedPreferences.getString("FloatData" + str, null);
    }

    public static void setFreeOCRNum(String str, int i) {
        FileUtils.saveFree(str, i);
    }

    public static int getFreeOCRNum(String str) {
        return FileUtils.getFree(str);
    }

    public static void setFreePoint(String str, int i) {
        FileUtils.savePoint(str, i);
    }

    public static int getFreePoint(String str) {
        return FileUtils.getPoint(str);
    }

    public static void setNoticList(Context context, Set<String> set) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setNoticList", new ArrayGson().toJson(new NoticSaveBean("", set))).commit();
    }

    public static Set<String> getNoticList(Context context) {
        NoticSaveBean noticSaveBean = (NoticSaveBean) new ArrayGson().fromJson(context.getSharedPreferences("DataUtil_1", 0).getString("setNoticList", null), NoticSaveBean.class);
        if (noticSaveBean == null) {
            return new TreeSet();
        }
        return noticSaveBean.getNoticList();
    }

    public static void setHasShowGuide(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setHasShowGuide", z).commit();
    }

    public static boolean getHasShowGuide(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setHasShowGuide", false);
    }

    public static void setPermission(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setPermission", z).commit();
    }

    public static boolean getPermission(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setPermission", false);
    }

    public static void setFisrtTip(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setFisrtTip", z).commit();
    }

    public static boolean getFisrtTip(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setFisrtTip", true);
    }

    public static void setUserID(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("getUserID", str).commit();
    }

    public static String getUserID(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("getUserID", null);
    }

    public static void setShareFen(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setShareFen", i).commit();
    }

    public static int getShareFen(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setShareFen", -1);
    }

    public static void setFirstVersionData(Context context, String str, boolean z) {
        SharedPreferences.Editor edit = context.getSharedPreferences("DataUtil_1", 0).edit();
        edit.putBoolean("setFirstVersionData" + str, z).commit();
    }

    public static boolean getFirstVersionData(Context context, String str) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("DataUtil_1", 0);
        return sharedPreferences.getBoolean("setFirstVersionData" + str, true);
    }

    public static void setKnowRecord(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setKnowRecord", z).commit();
    }

    public static boolean getKnowRecord(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setKnowRecord", false);
    }

    public static void setHandClickTime(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setHandClickTime", i).commit();
    }

    public static int getHandClickTime(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setHandClickTime", 1000);
    }

    public static void setRecentBackFile(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setRecentBackFile", str).commit();
    }

    public static String getRecentBackFile(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setRecentBackFile", "");
    }

    public static void setShowShare(Context context, boolean z) {
        if (context != null) {
            context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setShowShare", z).commit();
        }
    }

    public static boolean getShowShare(Context context) {
        if (context == null) {
            return false;
        }
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setShowShare", false);
    }

    public static void setShowViewTip(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setShowViewTip", z).commit();
    }

    public static boolean getShowViewTip(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setShowViewTip", false);
    }

    public static void setADDayNum(Context context, String str, int i) {
        SharedPreferences.Editor edit = context.getSharedPreferences("DataUtil_1", 0).edit();
        edit.putInt("setADDayNum" + str, i).commit();
    }

    public static int getADDayNum(Context context, String str) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("DataUtil_1", 0);
        return sharedPreferences.getInt("setADDayNum" + str, 1);
    }

    public static void setShowAuto(Context context, String str, boolean z) {
        SharedPreferences.Editor edit = context.getSharedPreferences("DataUtil_1", 0).edit();
        edit.putBoolean("setShowAuto" + str, z).commit();
    }

    public static void setVerView(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setVerView", z).commit();
    }

    public static boolean getVerView(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setVerView", false);
    }

    public static boolean getShowAuto(Context context, String str) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("DataUtil_1", 0);
        return sharedPreferences.getBoolean("setShowAuto" + str, true);
    }

    public static void setTrackClick(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setTrackClick", i).commit();
    }

    public static int getTrackClick(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setTrackClick", 60);
    }

    public static void setFriendGroup(Context context, boolean z) {
        if (context != null) {
            context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setFriendGroup", z).commit();
        }
    }

    public static boolean getFriendGroup(Context context) {
        if (context == null) {
            return false;
        }
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setFriendGroup", false);
    }

    public static void setPushNum(Context context, String str, int i) {
        SharedPreferences.Editor edit = context.getSharedPreferences("DataUtil_1", 0).edit();
        edit.putInt("setPushNum" + str, i).commit();
    }

    public static int getPushNum(Context context, String str) {
        SharedPreferences sharedPreferences = context.getSharedPreferences("DataUtil_1", 0);
        return sharedPreferences.getInt("setPushNum" + str, 3000);
    }

    public static void setRecordOffSetX(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setRecordOffSetX", i).commit();
    }

    public static int getRecordOffSetX(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setRecordOffSetX", 0);
    }

    public static void setRecordOffSetY(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setRecordOffSetY", i).commit();
    }

    public static int getRecordOffSetY(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setRecordOffSetY", 0);
    }

    public static void setGDTRewardNum(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setGDTRewardNum", i).commit();
    }

    public static int getGDTRewardNum(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setGDTRewardNum", 1);
    }

    public static void setTTRewardNum(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setTTRewardNum", i).commit();
    }

    public static int getTTRewardNum(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setTTRewardNum", 1);
    }

    public static void setTTFullNum(Context context, int i) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putInt("setTTFullNum", i).commit();
    }

    public static int getTTFullNum(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getInt("setTTFullNum", 1);
    }

    public static void setLastFullOrReward(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setLastFullOrReward", z).commit();
    }

    public static boolean getLastFullOrReward(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setLastFullOrReward", true);
    }

    public static void setTokenOffTime(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setTokenOffTime", str).commit();
    }

    public static String getTokenOffTime(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setTokenOffTime", "");
    }

    public static void setToken(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setToken", str).commit();
    }

    public static String getToken(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setToken", "");
    }

    public static void setWxID(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setWxID", str).commit();
    }

    public static String getWxID(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setWxID", "");
    }

    public static void setWxNickName(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setWxNickName", str).commit();
    }

    public static void setOffTime(Context context, String str) {
        context.getSharedPreferences("VoiceData_1", 0).edit().putString("setOffTime", str).commit();
    }

    public static String getOffTime(Context context) {
        return context.getSharedPreferences("VoiceData_1", 0).getString("setOffTime", "");
    }

    public static String getWxNickName(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setWxNickName", "");
    }

    public static void setWxImg(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setWxImg", str).commit();
    }

    public static String getWxImg(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setWxImg", "");
    }

    public static void setHasReadShareDown(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setHasReadShareDown", z).commit();
    }

    public static boolean getHasReadShareDown(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setHasReadShareDown", false);
    }

    public static void setHasReadShareUpload(Context context, boolean z) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putBoolean("setHasReadShareUpload", z).commit();
    }

    public static boolean getHasReadShareUpload(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getBoolean("setHasReadShareUpload", false);
    }

    public static void setSessionID(Context context, String str) {
        context.getSharedPreferences("DataUtil_1", 0).edit().putString("setSessionID", str).commit();
    }

    public static String getSessionID(Context context) {
        return context.getSharedPreferences("DataUtil_1", 0).getString("setSessionID", "");
    }
}
